package com.yihu.cms.service;

import java.util.ArrayList;
import java.util.List;

import com.yihu.beans.user.GroupQuery;

public class WexinMsgByGroupService {
	/***
	 * 获取负责售后的员工openids
	 * @return
	 */
	public static List<String> getCustomerService(){
		try{
			UserGroupService us = new UserGroupService();
			GroupQuery query = new GroupQuery();
			query.setGroupName("售后组");
			return us.getOpenidsByGroup(query);
		}
		catch(Exception e){
			List<String> ids = new ArrayList<String>();
			ids.add("oimf-joPvA_sEwMtRSGq-md55-ts");
			ids.add("oimf-jtehtEB7jtBtvrC_fRaG12s");
			ids.add("oimf-jgdYFoN9qu_zfTfB0t67hYA");
			ids.add("oimf-jrjcbSAtz59WOc_bkzbJHWA");
			ids.add("oimf-jsEWodjb3gTcMCenfmqxTqY");
			ids.add("oimf-jryWaQb6hT1pKV7QzB5sn_o");
			return ids;
		}
		
	}
	
	/***
	 * 获取负责客服咨询的员工openids
	 * @return
	 */
	public static List<String> getConsultService(){
		try{
			UserGroupService us = new UserGroupService();
			GroupQuery query = new GroupQuery();
			query.setGroupName("咨询组");
			return us.getOpenidsByGroup(query);
		}
		catch(Exception e){
			List<String> ids = new ArrayList<String>();
			ids.add("oimf-joPvA_sEwMtRSGq-md55-ts");
			ids.add("oimf-jtehtEB7jtBtvrC_fRaG12s");
			ids.add("oimf-jgdYFoN9qu_zfTfB0t67hYA");
			ids.add("oimf-jrjcbSAtz59WOc_bkzbJHWA");
			ids.add("oimf-jsEWodjb3gTcMCenfmqxTqY");
			ids.add("oimf-jryWaQb6hT1pKV7QzB5sn_o");
			return ids;
		}
		
		
	}
}
